package cn.ad.server.domain.ad;

import java.io.Serializable;

public class InteractionApp implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2172079622760381206L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "interactionapp";
	
	private long id;
	private String name;
	private String storeId;
	private int appType;
	private String downloadUrl;
	private int classesId;
	private AppClass appClass;
	private int appVolume;
	private String apkName;
	
	public static String cacheKey(long id) {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}

	public int getAppType() {
		return appType;
	}

	public void setAppType(int appType) {
		this.appType = appType;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}


	public int getClassesId() {
		return classesId;
	}

	public void setClassesId(int classesId) {
		this.classesId = classesId;
	}

	public int getAppVolume() {
		return appVolume;
	}

	public void setAppVolume(int appVolume) {
		this.appVolume = appVolume;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}

	public AppClass getAppClass() {
		return appClass;
	}

	public void setAppClass(AppClass appClass) {
		this.appClass = appClass;
	}
	
	
}
